const express = require('express');
const router = express.Router();
const UserOperateController = require('../controllers/userOperateController');

// 收藏相关
router.post('/collect', UserOperateController.collectVideo);
router.post('/uncollect', UserOperateController.uncollectVideo);
router.get('/collections', UserOperateController.getCollectionList);
router.get('/is-collected', UserOperateController.isCollected);

// 历史记录相关
router.post('/history', UserOperateController.recordHistory);
router.get('/histories', UserOperateController.getHistoryList);
router.get('/video-progress', UserOperateController.getVideoProgress);

module.exports = router;